ABC264 D - "redocta".swap(i,i+1)
提出
code: python
s = list(input())
# s: 入力の配列, t: 入れ替える文字列, u: 入れ替え先の目的であるインデックス
def replace(s, t, u):
i = 0
for j in range(6):
break
continue
i += 1
return i
ans = 0
ans += replace(s, "a", 0)
ans += replace(s, "t", 1)
ans += replace(s, "c", 2)
ans += replace(s, "o", 3)
ans += replace(s, "d", 4)
ans += replace(s, "e", 5)
print(ans)